package com.llb666.e.shop.infrastructure.convert;

import com.llb666.e.shop.domain.entity.Users;
import com.llb666.e.shop.infrastructure.po.UsersPo;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;
import org.mapstruct.factory.Mappers;

/**
 * 用户信息转换类.
 *
 * @author llb666
 * @date 2022/7/8 18:44
 */
@Mapper(unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface UsersCvt {

    UsersCvt INSTANCE = Mappers.getMapper(UsersCvt.class);

    UsersPo do2po(Users user);

    Users po2do(UsersPo user);

}
